<%inherit file="/base.html"/>

<%def name="main_heading()">${_('Site administration')}</%def>

<%def name="content()">

% for post in c.posts:
<h3>
	${post.title}
	% if c.is_admin:
		[<a href="${url.current(action='edit_post', id=post.id)}">${_('edit')}</a>]
	% endif
</h3>
<p class="blog-post">${post.text.replace('\n', '<br/>')|n}</p>
% endfor

% if c.is_admin:
<form action="${url.current(action='add_post')}" method="post">
	${c.form}
	<p align="center"><input class="submit-button big" type="submit" value="${_('Add')}"/></p>
</form>
% endif

</%def>